<template>
  <div class="list">
    <a href="" v-for="(v, i) in arr" :key="i">
      <div class="figure">
        <img :src="v.src" alt="" />
        <div class="detail">
          <h3>{{ v.title }}</h3>
          <div class="d1">
            <img :src="v.storeSrc" alt="" />
            <span>{{ v.store }}</span>
          </div>
          <div class="d2">
            <div class="leftd2">
              <span class="d21">￥{{ v.money }}</span>
              <span class="d22">￥{{ v.lastMoney }}</span>
            </div>
            <span class="d23">销量{{ v.salesNumber }}</span>
          </div>
          <div class="d3">
            <div class="left">
              <span class="juan">券</span>
              <span class="sy">{{ v.ticket }}元</span>
            </div>
            <div class="right">
              <span class="y">佣</span>
              <span class="q">￥{{ v.commission }}</span>
            </div>
          </div>
        </div>
      </div>
      <div class="tip">
        <span class="reason">推荐理由</span>
        <span class="words">{{ v.reason }}</span>
      </div>
    </a>
  </div>
</template>

<script>
export default {
  computed: {
    arr() {
      if (this.$store.state.Paihang.quanhou.length != 0) {
        return this.$store.state.Paihang.quanhou;
      } else {
        return null;
      }
    },
  },
};
</script>

<style scoped>
.list {
  flex: 1;
  overflow: auto;
}
.list {
  width: 332rem;
  margin: 0 auto;
}
.list > a {
  height: 180rem;
  margin-bottom: 10rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.list > a .figure {
  height: 108rem;
  display: flex;
}
.list > a span {
  display: inline-block;
}
.list > a .figure > img {
  width: 109rem;
  height: 108rem;
  margin-right: 6rem;
}
.list > a .figure .detail {
  border-bottom: 1px solid #edeef0;
  width: 207rem;
}
.list > a .figure .detail h3 {
  line-height: 17rem;
  font-size: 12rem;
  color: #283136;
  margin-top: 6rem;
  height: 35.425rem;
}
.list > a .figure .detail .d1 {
  line-height: 22rem;
  color: #bfc4c8;
  font-size: 12rem;
}
.list > a .figure .detail .d1 img {
  vertical-align: -3rem;
  width: 16.86rem;
  height: 16.86rem;
  margin-right: 6rem;
}
.list > a .figure .detail .d2 {
  display: flex;
  justify-content: space-between;
}
.list > a .figure .detail .d2 .leftd2 {
  display: flex;
  justify-content: flex-start;
}
.list > a .figure .detail .d2 .leftd2 .d21 {
  color: #ff9281;
  font-size: 12rem;
  margin-right: 8rem;
  line-height: 27.5rem;
}
.list > a .figure .detail .d2 .leftd2 .d22 {
  line-height: 26.5rem;
  color: #bfc4c8;
  font-size: 12rem;
  display: block;
  transform: scale(0.83);
  text-decoration: line-through;
}
.list > a .figure .detail .d2 .d23 {
  line-height: 26.5rem;
  color: #bfc4c8;
  font-size: 12rem;
  transform: scale(0.83);
  display: inline-block;
  vertical-align: bottom;
}
.list > a .figure .detail .d3 {
  display: flex;
  justify-content: space-between;
  margin-top: -4rem;
}
.list > a .figure .detail .d3 .left {
  width: 50rem;
  border: 1px solid #e8b2b0;
  height: 15rem;
  color: #e8b2b0;
  display: flex;
}
.list > a .figure .detail .d3 .left .juan {
  width: 18rem;
  line-height: 14rem;
  text-align: center;
  border-right: 1px solid #e8b2b0;
  transform: scale(0.83);
  font-size: 12rem;
}
.list > a .figure .detail .d3 .left .sy {
  width: 28rem;
  line-height: 15.66rem;
  text-align: center;
  transform: scale(0.83);
  font-size: 12rem;
}
.list > a .figure .detail .d3 .right {
  width: 55rem;
  height: 18rem;
  line-height: 18rem;
  display: flex;
  justify-content: flex-end;
  transform: scale(0.83);
  margin-top: -2rem;
}
.list > a .figure .detail .d3 .right .y {
  width: 15.35rem;
  font-size: 12rem;
  background: #fdbf46;
  color: #fff;
  text-align: center;
}
.list > a .figure .detail .d3 .right .q {
  width: 38.5rem;
  background: #fff6e5;
  color: #fdbf46;
  text-align: center;
  font-size: 12rem;
}
.list > a .tip {
  height: 64rem;
  padding: 0 10rem;
  overflow: hidden;
}
.list > a .tip .reason {
  width: 62rem;
  height: 18rem;
  background: #ff8472;
  font-size: 10rem;
  line-height: 18rem;
  text-align: center;
  color: #fff;
  margin-right: 12rem;
  border-radius: 3rem;
}
.list > a .tip .words {
  font-size: 10rem;
  color: #838e90;
  line-height: 20rem;
  display: inline;
}
</style>
